package mvp.com.bbc.ui.model;

import io.reactivex.Observable;
import mvp.com.bbc.app.ApiUrls;
import mvp.com.bbc.app.BaseApplication;
import mvp.com.bbc.appContact.AppContact;
import mvp.com.bbc.bean.LoginBean;

/**
 * Created by Administrator on 2017/9/29.
 */

public class LoginModel implements AppContact.LoginModel {
    @Override
    public Observable<LoginBean> loginSuccess(String phone, String password) {
        ApiUrls.Login login = BaseApplication.getmRetrofit().create(ApiUrls.Login.class);
        Observable<LoginBean> observable = login.getData(phone, password);
        return observable;
    }
}
